<?php
/*
Author: Janek Niefeldt
Author URI: http://www.janek-niefeldt.de/
Description: Configuration of My Custom Widgets Plugin.
*/
include_once('my_custom_widget_functions.php');
include_once('my_custom_widget_meta.php');
?><?php
class MCW_ extends WP_Widget
{
	function MCW_(){
		$widget_ops = array('classname' => 'MCW_', 'description' => 'CustomWidget generated with MCW &raquo;' );
		$control_ops = array('width' => 345);
		$this->WP_Widget('MCW_', 'MCW: ', $widget_ops, $control_ops);
	}
	function widget($args, $instance){
		$args['name'] = '';
		MCW_eval_code($args);
	}
	function update($new_instance, $old_instance){
	  $new_instance['title'] = MCW_get_widget_info('', 'title');
		return $new_instance;
	}
	function form($instance){
    MCW_get_official_form('');	  
  }
}
	function MCW_Init() {
	  register_widget('MCW_');
	}
	add_action('widgets_init', 'MCW_Init');
?><?php
class MCW_Delivery_Widget extends WP_Widget
{
	function MCW_Delivery_Widget(){
		$widget_ops = array('classname' => 'MCW_Delivery_Widget', 'description' => 'CustomWidget generated with MCW &raquo;' );
		$control_ops = array('width' => 345);
		$this->WP_Widget('MCW_Delivery_Widget', 'MCW: Delivery_Widget', $widget_ops, $control_ops);
	}
	function widget($args, $instance){
		$args['name'] = 'Delivery_Widget';
		MCW_eval_code($args);
	}
	function update($new_instance, $old_instance){
	  $new_instance['title'] = MCW_get_widget_info('Delivery_Widget', 'title');
		return $new_instance;
	}
	function form($instance){
    MCW_get_official_form('Delivery_Widget');	  
  }
}
	function MCW_Delivery_WidgetInit() {
	  register_widget('MCW_Delivery_Widget');
	}
	add_action('widgets_init', 'MCW_Delivery_WidgetInit');
?><?php
class MCW_Intro_Widget extends WP_Widget
{
	function MCW_Intro_Widget(){
		$widget_ops = array('classname' => 'MCW_Intro_Widget', 'description' => 'CustomWidget generated with MCW &raquo;' );
		$control_ops = array('width' => 345);
		$this->WP_Widget('MCW_Intro_Widget', 'MCW: Intro_Widget', $widget_ops, $control_ops);
	}
	function widget($args, $instance){
		$args['name'] = 'Intro_Widget';
		MCW_eval_code($args);
	}
	function update($new_instance, $old_instance){
	  $new_instance['title'] = MCW_get_widget_info('Intro_Widget', 'title');
		return $new_instance;
	}
	function form($instance){
    MCW_get_official_form('Intro_Widget');	  
  }
}
	function MCW_Intro_WidgetInit() {
	  register_widget('MCW_Intro_Widget');
	}
	add_action('widgets_init', 'MCW_Intro_WidgetInit');
?><?php
class MCW_Map_Widget extends WP_Widget
{
	function MCW_Map_Widget(){
		$widget_ops = array('classname' => 'MCW_Map_Widget', 'description' => 'CustomWidget generated with MCW &raquo;' );
		$control_ops = array('width' => 345);
		$this->WP_Widget('MCW_Map_Widget', 'MCW: Map_Widget', $widget_ops, $control_ops);
	}
	function widget($args, $instance){
		$args['name'] = 'Map_Widget';
		MCW_eval_code($args);
	}
	function update($new_instance, $old_instance){
	  $new_instance['title'] = MCW_get_widget_info('Map_Widget', 'title');
		return $new_instance;
	}
	function form($instance){
    MCW_get_official_form('Map_Widget');	  
  }
}
	function MCW_Map_WidgetInit() {
	  register_widget('MCW_Map_Widget');
	}
	add_action('widgets_init', 'MCW_Map_WidgetInit');
?><?php
class MCW_Question_Widget extends WP_Widget
{
	function MCW_Question_Widget(){
		$widget_ops = array('classname' => 'MCW_Question_Widget', 'description' => 'CustomWidget generated with MCW &raquo;' );
		$control_ops = array('width' => 345);
		$this->WP_Widget('MCW_Question_Widget', 'MCW: Question_Widget', $widget_ops, $control_ops);
	}
	function widget($args, $instance){
		$args['name'] = 'Question_Widget';
		MCW_eval_code($args);
	}
	function update($new_instance, $old_instance){
	  $new_instance['title'] = MCW_get_widget_info('Question_Widget', 'title');
		return $new_instance;
	}
	function form($instance){
    MCW_get_official_form('Question_Widget');	  
  }
}
	function MCW_Question_WidgetInit() {
	  register_widget('MCW_Question_Widget');
	}
	add_action('widgets_init', 'MCW_Question_WidgetInit');
?><?php
class MCW_Subscribe_Widget extends WP_Widget
{
	function MCW_Subscribe_Widget(){
		$widget_ops = array('classname' => 'MCW_Subscribe_Widget', 'description' => 'CustomWidget generated with MCW &raquo;' );
		$control_ops = array('width' => 345);
		$this->WP_Widget('MCW_Subscribe_Widget', 'MCW: Subscribe_Widget', $widget_ops, $control_ops);
	}
	function widget($args, $instance){
		$args['name'] = 'Subscribe_Widget';
		MCW_eval_code($args);
	}
	function update($new_instance, $old_instance){
	  $new_instance['title'] = MCW_get_widget_info('Subscribe_Widget', 'title');
		return $new_instance;
	}
	function form($instance){
    MCW_get_official_form('Subscribe_Widget');	  
  }
}
	function MCW_Subscribe_WidgetInit() {
	  register_widget('MCW_Subscribe_Widget');
	}
	add_action('widgets_init', 'MCW_Subscribe_WidgetInit');
?>